package cn.zyy.hotel.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Employee implements Serializable {

  private Integer id; //员工编号
  private String loginName; //登录名称
  private String loginPwd; //登录密码
  private String name; //真实姓名
  private Integer sex; //性别 1=男 2=女
  private Integer deptId; //所属部门
  private String deptName; //部门名称
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(timezone = "Asia/Shanghai",pattern = "yyyy-MM-dd")
  private Date hireDate; //入职日期
  private String salt; //加密盐值
  private Integer createdBy; //创建人
  private Date createDate; //创建时间
  private Integer modifyBy; //修改人
  private Date modifyDate; //修改时间
  private String remark; //备注

}
